<?php get_header()
?>

<?php while (have_posts()): the_post();
    $post_id = get_the_ID();
    $title = get_the_title();
    $permalink = get_permalink();
    $excerpt = Azio_Posts::get_excerpt($post_id);

    $thumbnail_id = get_post_thumbnail_id($post_id);
    $image = wp_get_attachment_image_src($thumbnail_id, 'thumbnail', true);
    $image_thumbnail = $image[0];

    ?>
    <h1><a href="<?php echo $permalink ?>" title="<?php echo esc_attr($title) ?>"></a><?php echo $title ?></h1>
    <h2><?php echo $excerpt ?></h2>
    <div>
        <?php
        if (function_exists('yoast_breadcrumb')) {
            yoast_breadcrumb('<div class="breadcrumb">', '</div>');
        }
        ?>
    </div>
    <div>
        <div>
            <img src="<?php echo $image_thumbnail ?>" alt="<?php echo esc_attr($title) ?>"/>
        </div>
        <?php the_content() ?>
    </div>
<?php endwhile; // while have post ?>
<?php get_footer() ?>